﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 用户令牌表
    /// </summary>
    public class VUserToken : BaseVModel
    {
        private string _token = string.Empty;

        #region Public Property

        ///<Summary>
        /// 用户ID
        ///</Summary>
        public int UserId { get; set; }

        ///<Summary>
        /// 令牌
        ///</Summary>
        public string Token
        {
            get { return string.IsNullOrWhiteSpace(_token) ? string.Empty : _token; }
            set { _token = value; }
        }

        ///<Summary>
        /// 过期时间
        ///</Summary>
        public DateTime Expires { get; set; }
        #endregion
    }
}
